
<!-- top menu dove aggiungere funzionalità comuni a tutte le view -->

<div class="top_bar" style="position: relative; background-color: #fafafa; height: 30px; width: 100%">
	<div class="top_menu" style="position: absolute; top: 0px; left: 5px">
		<a href="/test_1/Groups">Gruppi</a>
		<a href="/test_1/Users/">Utenti</a>
		<a href="/test_1/Multe">Multe</a>
		<a href="/test_1/Emails">Email</a>
		<a href="/test_1/Info">Info</a>
	</div>
	<div class="top_login" style="position: absolute; top: 0px; left: 300px">
		<?php 
			if ($auth->loggedIn()) {
				$utente = $auth->user();
		?>
				Benvenuto <?php echo $utente['username'] ?><a type="button" href="/test_1/Users/logout"> Logout</a>
		<?php 
			} else {
		?>
				<form action="/test_1/Users/login" method="post">
					Login <input type="text" name="data[User][username]" style="width: 50px; font-size: 10px; padding: 0px" /> Password <input type="password" name="data[User][password]" style="width: 50px; font-size: 10px; padding: 0px" /> <input type="submit" value="Entra" style="width: 50px; font-size: 10px" />
				</form>
		<?php 
			}
		?>
	</div>
</div>